const reducer = (
  state = {
    //全局状态
    bannerList: [],
    proList: [],
  },
  action
) => {
  switch (action.type) {
    case "change_banner_list":
      return { ...state, bannerList: action.payload };
    case "change_pro_list":
      return { ...state, proList: action.payload };
    default:
      return state;
  }
};

export default reducer